package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.WecharTemplate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 微信发送模板 Mapper 接口
 * </p>
 *
 * @author min
 * @since 2023-01-15
 */
public interface WecharTemplateMapper extends BaseMapper<WecharTemplate> {

    @Select({"<script>",
            "SELECT openid from wechars_bind where student_id = ${studentId}",
            "</script>"})
    public List<String> openidList( @Param("studentId") String studentId);

}
